package org.whh.auth.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.whh.auth.domain.Permission;

import org.whh.auth.mapper.PermissionMapper;
import org.whh.auth.service.IPermissionService;
import org.whh.base.service.impl.BaseServiceImpl;

import java.util.List;

@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {
    @Autowired
    PermissionMapper perMapper;


    @Override
    public List<Permission> getPermissionTree() {
        List<Permission> permissions=perMapper.getPermissionTree();
        return permissions;
    }

    @Override
    public List<String> getPermisionSns() {
        return perMapper.getPermissionSns();
    }
}
